<!-- ./skins/tpl/requests/form_add.tpl begin -->
<p>Добавим заявку:</p>
<p style="font-size:50%;color:red;" ><?php echo getInfo($info); ?></p>
<form action="" method="post">  
Заголовок:<br />
 <input class="caption" name="form[value2]" type="text" /><br /> 
Текст:<br />
 <textarea class="desc" name="form[value3]" ></textarea><br />
<?if(!empty($rt_array)):?>
 Тип:<br />
 <select class="caption" name="form[value4]" >
<?foreach($rt_array as $rt_key => $rt):?>
<option value="<?=$rt['id']?>"><?=$rt['caption']?></option>
<?endforeach?>
 </select>
 <br /> 
<?endif?>
Целевая дата:<br />
 <input class="caption" name="form[value5]" type="text" /><br />
<p style="font-size:50%;color:#999;">формат даты: ГГГГ-ММ-ДД</p>

<?if(!empty($available_domains)):?>
<input id="check_all_domains" type="checkbox" name="form[value6]" onChange="checkStateDom()" checked/>все домены
<select id="select_domains" name="form[value7]" disabled>
	<?foreach($available_domains as $a_d_key => $a_d):?>
		<option value="<?=$a_d['d_id']?>"><?=$a_d['d_caption']?></option>
	<?endforeach?>
</select><br/>
<?endif?>

<script type="text/javascript">
function checkStateDom()
{
	checkBox = document.getElementById('check_all_domains');
	selectBox = document.getElementById('select_domains');
	if(checkBox.checked)
		selectBox.disabled = true;
	else
		selectBox.disabled = false;
}
</script> 
 
<input name="ok" type="submit" value="Добавить"><br />
<br />  
</form>
<!-- ./skins/tpl/requests/form_add.tpl end -->
